package com.zjy.dao;

import com.zjy.bean.ArticleDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
@Repository
public interface ArticleDetailMapper extends Mapper<ArticleDetail> {
    int deleteArticleDetail(String articleId);

    ArticleDetail selectArticleDetailByArticleId(String articleId);

    int addCommentNumByArticleId(String articleId);

    int updateLikeNum(@Param("articleId") String articleId, @Param("count") int count);


    int updateReadNum(@Param("articleId") String articleId, @Param("count") int count);

    int updateCommentNumByArticleId(@Param("articleId") String articleId, @Param("count") int count);
}